package com.itheima.consumer.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className:FanoutConfig
 * @date: 2025/7/7 下午7:35
 * @description:
 */
@Configuration
public class FanoutConfig {
    //@Bean
    //public FanoutExchange fanoutExchange(){
    //    return new FanoutExchange("hmall.fanout");
    //}
    //@Bean
    //public Queue fanoutQueue(){
    //    return new Queue("fanout.queue");
    //}
    //@Bean
    //public Queue fanoutQueue2(){
    //    return new Queue("fanout.queue2");
    //}
    //@Bean
    //public Binding fanoutBinding(Queue fanoutQueue,FanoutExchange fanoutExchange){
    //    return BindingBuilder.bind(fanoutQueue).to(fanoutExchange);
    //}    @Bean
    //public Binding fanoutBinding2(Queue fanoutQueue2,FanoutExchange fanoutExchange){
    //    return BindingBuilder.bind(fanoutQueue2).to(fanoutExchange);
    //}
}
